﻿<Window x:Class="TheSharpFontViewer.MainForm"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Properties="clr-namespace:TheSharpFontViewer.Properties"
    Title="The Sharp Font Viewer" Height="400" Width="700"
    Loaded="Window_Loaded">

    <Grid>
        <Grid Margin="0,0,0,27">
            <ToolBar Height="26" VerticalAlignment="Top">
                <ComboBox Name="Font_Size_ComboBox" Width="100" HorizontalAlignment="Left" VerticalAlignment="Top" SelectionChanged="Font_Size_ComboBox_SelectionChanged" IsEditable="False" IsReadOnly="False" ToolTip="Here you can change the size of the displayed font." TabIndex="2" />
                <Button FontWeight="Bold" Name="Font_Bold_Button" Click="Font_Bold_Button_Click" ToolTip="Here you can switch bold on and off." TabIndex="3">B</Button>
                <Button FontStyle="Italic" Name="Font_Italic_Button" Click="Font_Italic_Button_Click" ToolTip="Here you can toggle italic on and off." TabIndex="4">I</Button>
                <Button Name="Font_Underline_Button" Click="Font_Underline_Button_Click" ToolTip="Here you can toggle underlineing on and off." TabIndex="5">
                    <Underline>U</Underline>
                </Button>
                <Button Name="ManageFolders_Button" Click="ManageFolders_Button_Click" ToolTip="Here you can manage your folders." TabIndex="6">Manage Folders</Button>
            </ToolBar>
            <Grid Margin="0,30,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="164" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <ListBox Grid.Column="0" Name="Fonts_listBox" SelectionChanged="Fonts_listBox_SelectionChanged" ToolTip="All your added fonts." TabIndex="0" Margin="0,0,4,21" />
                <TextBox Grid.Column="0" Name="Fonts_Search_TextBox" Height="23" Margin="0,0,4,0" VerticalAlignment="Bottom" TextChanged="Fonts_Search_TextBox_TextChanged" ToolTip="Here you can search for a font." />
                <TextBox Name="Text_textBox" AcceptsReturn="True" AcceptsTab="False" TextWrapping="Wrap" Margin="2,0,0,0" VerticalScrollBarVisibility="Auto"
                 Text="{Binding Path=TestText, Source={x:Static Properties:Settings.Default}}" TextChanged="Text_textBox_TextChanged" ToolTip="The testtext for the selected font." TabIndex="1" Grid.Column="1" />

                <GridSplitter Grid.Column="0" Width="2" ShowsPreview="True" HorizontalAlignment="Right" VerticalAlignment="Stretch" />
            </Grid>
        </Grid>
        <StatusBar Height="23" Name="statusBar1" VerticalAlignment="Bottom">
            <StatusBarItem ToolTip="The name of the selected font.">
                <TextBlock Name="Fonts_Selected_TextBlock" />
            </StatusBarItem>
            <StatusBarItem ToolTip="The file path of the selected font.">
                <TextBlock Name="Fonts_Selected_Path_TextBlock" />
            </StatusBarItem>
            <StatusBarItem HorizontalAlignment="Right" ToolTip="The numer of fonts you have in your list.">
                <TextBlock Name="Fonts_Count_TextBlock">Fonts: 0</TextBlock>
            </StatusBarItem>
        </StatusBar>
    </Grid>
</Window>